package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.domain.entity.StoreInDetail;
import com.ruoyi.system.mapper.StoreInDetailMapper;
import com.ruoyi.system.service.StoreInDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: ruohao
 * @Date: 2023/10/13
 **/
@Service
public class StoreInDetailServiceImpl implements StoreInDetailService {
    @Resource
    private StoreInDetailMapper storeInDetailMapper;

    @Override
    public List<StoreInDetail> selectList(StoreInDetail storeInDetail) {
        return storeInDetailMapper.selectList(storeInDetail);
    }

    @Override
    public Boolean update(StoreInDetail storeInDetail) {
        return storeInDetailMapper.update(storeInDetail) == 1;
    }

    @Override
    public Boolean deleteById(Long id) {
        return storeInDetailMapper.deleteById(id) == 1;
    }

    @Override
    public Boolean create(StoreInDetail storeInDetail) {
        return storeInDetailMapper.insert(storeInDetail) == 1;
    }

    @Override
    public StoreInDetail selectById(Long id) {
        return storeInDetailMapper.selectById(id);
    }
}
